#!/bin/bash
if ! command -v lspci >/dev/null 2>&1; then
    echo lspci not installed
    exit 1
fi
count=$(lspci | grep -E "(3D|VGA compatible) controller: NVIDIA" --count)
echo "{ \"count\": $count }"
